//
//  MyView.m
//  AKUI
//
//  Created by Ben Chen on 3/8/08.
//  Copyright Sleeper 2008. All rights reserved.
//

#import "AKUIRenderView.h"

@implementation AKUIRenderView

- (BOOL)canBecomeFirstResponder {
	return YES;
}

- (BOOL)becomeFirstResponder {
	return YES;
}

- (BOOL)canResignFirstResponder {
	return YES;
}

- (BOOL)resignFirstResponder {
	return YES;
}

- (UIResponder *)nextResponder {
	if (!customNextResponder) 
		return [super nextResponder];
	else
		return customNextResponder;
}

- (void)setNextResponder:(UIResponder*)aResponder {
	customNextResponder = aResponder;
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
	if (customNextResponder)
		[customNextResponder touchesBegan:touches withEvent:event];
	else
		[super touchesBegan:touches withEvent:event];
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
	if (customNextResponder)
		[customNextResponder touchesMoved:touches withEvent:event];
	else
		[super touchesMoved:touches withEvent:event];
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
	if (customNextResponder)
		[customNextResponder touchesEnded:touches withEvent:event];
	else
		[super touchesEnded:touches withEvent:event];
}

//- (void)touchesCanceled {
//	if (customNextResponder)
//		[customNextResponder touchesCanceled];
//	else
//		[super touchesCanceled];
//}

@end
